export const orderIndex = (index, pageVo) => {
  if (pageVo.pageNum !== 1) {
    return index + 1 + ((pageVo.pageNum - 1) * pageVo.pageSize)
  }
  return index + 1
}
export const idCarDesensitization = (value) => {
  return value ? value.replace(/^(.{6})(?:\d+)(.{3})$/, '$1********$2') : ''
}
export const cellularPhone = (value) => {
  return value ? value.replace(/^(.{3})(?:\d+)(.{4})$/, '$1****$2') : ''
}
